package com.wmh.baseservice.merchant.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wmh.baseservice.merchant.pojo.MerchantInfo;
import com.wmh.baseservice.merchant.pojo.MerchantPlotRegion;
import com.wmh.baseservice.common.mybatisplus.methods.CommonMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author wmh generator
 * @since 2022-01-04
 */
public interface MerchantPlotRegionMapper extends CommonMapper<MerchantPlotRegion> {

    /**
     * 区域列表
     */
    IPage<MerchantPlotRegion> getList(Page<Object> vegetablePage, @Param("map") Map<String, Object> map);


    /**
     * 用户端-可租赁区域列表
     */
    IPage<MerchantPlotRegion> usList(Page<MerchantPlotRegion> merchantPlotRegionPage,@Param("map")Map<String,Object> map);

    /**
     * 根据区域id查出该区域原商家
     */
    MerchantInfo getRawMerchantInfo(Long id);

}
